package com.celesea.configuration.security;

public class SsoUtil {
    public static final String REDIS_KEY_ROOT = "sso:";

    public static final String REDIS_KEY_LOGIN_INFO = "loginInfo";

    public static final String REDIS_KEY_UPDATE_TIME = "updateTime";

    public static final String REDIS_KEY_DEFALUT_PASSWORD = "defaultPassword";
    
    public static String getLoginInfoKey(String loginSessionId) {
        return REDIS_KEY_ROOT + loginSessionId + ":" + REDIS_KEY_LOGIN_INFO;
    }

    public static String getUpdateTimeKey(String loginSessionId) {
        return REDIS_KEY_ROOT + loginSessionId + ":" + REDIS_KEY_UPDATE_TIME;
    }

    public static String getDefaultPasswordKey(String loginSessionId) {
        return REDIS_KEY_ROOT + loginSessionId + ":" + REDIS_KEY_DEFALUT_PASSWORD;
    }
}
